BIN=WinDev.exe
CC=gcc
#CCFLAGS= -D_WIN64 -D_AMD64_ -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 \
#	-DINITGUID\
#	-DNTDDI_VERSION=0x0A000000
	#-Wno-pointer-to-int-cast 
CCFLAGS+=-Wno-incompatible-pointer-types
CCFLAGS+=-w #-nostdinc
#INCLUDE=-IE:/windows-sdk/Include/10.0.26100.0/um #-IE:\winapi\orig
#INCLUDE+=-IE:/windows-sdk/Include/10.0.26100.0/shared
#INCLUDE+=-IE:/windows-sdk/Include/10.0.26100.0/winrt
#LIBS=-LE:/windows-sdk/Lib/10.0.26100.0/um/x64 -luser32 -lgdi32 -lkernel32 -lole32 -lgdiplus -lmsimg32
${BIN}:obj/icons.res obj/main.o obj/ic_menu_png.o
	${CC} $^ -o $@ ${LIBS} 2>&1
obj/icons.res:src/icons.rc
	windres -i $^ --input-format=rc -o $@ -O coff
obj/main.o:src/main.c src/WndProc.c src/MenuProc.c
	${CC} ${CCFLAGS} src/main.c -o obj/main.o  ${INCLUDE}  2>&1

